package com.sugar.MultiThread.a12deadlock;

/**
 * @author felix
 * @date 2025/2/26 09:33
 */
public class ThreadDemo {
    public static void main(String[] args) {
       /*
           需求：
                死锁
       */

        Thread t1 = new MyThread();
        Thread t2 = new MyThread();


        t1.setName("线程A");
        t2.setName("线程B");

        t1.start();
        t2.start();
    }
}
